package mapping

import (
	"maya-service/model"
	"maya-service/model/entity"
)

// AiConsultStaticssEntityToDto entity data transfer
func AiConsultStaticssEntityToDto(aiConsultStaticss []*entity.AiConsultStatics) []*model.AiConsultStaticsInfo {
	out := make([]*model.AiConsultStaticsInfo, 0, len(aiConsultStaticss))
	for _, c := range aiConsultStaticss {
		out = append(out, AiConsultStaticsEntityToDto(c))
	}
	return out
}

// AiConsultStaticsEntityToDto entity data transfer
func AiConsultStaticsEntityToDto(e *entity.AiConsultStatics) *model.AiConsultStaticsInfo {
	return &model.AiConsultStaticsInfo{

		Id: e.Id,

		UserId: e.UserId,

		Level: e.Level,

		Module: e.Module,

		Count: e.Count,

		TotalScore: e.TotalScore,

		MaxScore: e.MaxScore,

		MinScore: e.MinScore,

		CreatedAt: e.CreatedAt,

		UpdatedAt: e.UpdatedAt,
	}
}
